<g:setProvider library="jquery"/>

<h1>Show User</h1>

<g:if test="${flash.message}">
	<div class="message">${flash.message}</div>
</g:if>

<div class="dialog">
    <table>
        <tbody>
            <tr class="prop">
                <td valign="top" class="name">Id:</td>
                <td valign="top" class="value">${fieldValue(bean:userInstance, field:'id')}</td>
            </tr>
            <tr class="prop">
                <td valign="top" class="name">Name:</td>
                <td valign="top" class="value">${fieldValue(bean:userInstance, field:'name')}</td>
            </tr>
            <tr class="prop">
                <td valign="top" class="name">Last Name:</td>
                <td valign="top" class="value">${fieldValue(bean:userInstance, field:'lastName')}</td>
            </tr>
            <tr class="prop">
                <td valign="top" class="name">Alias:</td>
                <td valign="top" class="value">${fieldValue(bean:userInstance, field:'alias')}</td>
            </tr>
            <tr class="prop">
                <td valign="top" class="name">Email:</td>
                <td valign="top" class="value">${fieldValue(bean:userInstance, field:'email')}</td>
            </tr>
            <tr class="prop">
                <td valign="top" class="name">Date Created:</td>
                <td valign="top" class="value">${fieldValue(bean:userInstance, field:'dateCreated')}</td>
            </tr>
        </tbody>
    </table>
</div>
<div class="buttons">
    <g:form>
        <input type="hidden" name="id" value="${userInstance?.id}" />
        <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
        <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
    </g:form>
</div>
